package cn.livingCloud.repository;

import cn.livingCloud.dto.EmployeeListDto;
import cn.livingCloud.entity.core.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper {
    int deleteByPrimaryKey(String uuid);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(String uuid);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    List<Employee> getList(EmployeeListDto listDto);

    List<Employee> searchEmployee(@Param("key") String key);

    List<Employee> getListByDeptUuid(String deptUuid);

    List<Employee> findCurrentDeptLeader(String uuid);

    List<Employee> findEmployees(List<String> list);

    Employee findEmployeeByMember(@Param("uuid") String uuid);
}